package cn.com.huzo.service.master.impl;

import cn.com.huzo.model.entities.master.PackingListTypeEntity;
import cn.com.huzo.repository.master.PackingListTypeRepository;
import huzofw.service.impl.GenericManagerImpl;
import cn.com.huzo.service.master.PackingListTypeManager;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 外贸箱单类型管理服务对象类实现。
 *
 * @author 吴旭
 */
@Service("PackingListTypeManager")
public class PackingListTypeManagerImpl extends GenericManagerImpl<PackingListTypeEntity, Long>
        implements PackingListTypeManager {

    @Resource(name = "PackingListTypeRepository")
    private PackingListTypeRepository _dao;

    /**
     * {@inheritDoc}
     *
     */
    @Transactional
    @Override
    public List<PackingListTypeEntity> fetchAll() throws Exception {
        return _dao.fetchAll();
    }
}
